//
//  CWCNewsViewController.m
//  ChuanNews
//
//  Created by dllo on 16/4/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CWCNewsViewController.h"
#import "BaseHeader.h"
#import "ZLNavTabBarController.h"
#import "ZLCommonConst.h"
#import "CWCCustomViewController.h"
#import "CWCImageViewController.h"
#import "CWCFashionViewController.h"
#import "CWCMilitaryViewController.h"
#import "CWCEmotionViewController.h"
#import "CWCBookViewController.h"
#import "CWCFunnyViewController.h"
#import "CWCEmotionViewController.h"
@interface CWCNewsViewController ()

@end

@implementation CWCNewsViewController

- (void)viewDidLoad{
    CWCCustomViewController *oneViewController = [[CWCCustomViewController alloc]init];
    oneViewController.title = @"头条";
    oneViewController.view.backgroundColor = [UIColor whiteColor];
    CWCImageViewController *twoViewController = [[CWCImageViewController alloc]init];
    twoViewController.title = @"图片";
    twoViewController.view.backgroundColor = [UIColor whiteColor];
    CWCFashionViewController *threeViewController = [[CWCFashionViewController alloc]init];
    threeViewController.title = @"时尚";
    threeViewController.view.backgroundColor = [UIColor whiteColor];
    CWCMilitaryViewController *fourViewController = [[CWCMilitaryViewController alloc]init];
    fourViewController.title = @"军事";
    fourViewController.view.backgroundColor = [UIColor whiteColor];
    CWCEmotionViewController *fiveViewController = [[CWCEmotionViewController alloc]init];
    fiveViewController.title = @"情感";
    fiveViewController.view.backgroundColor = [UIColor whiteColor];
    CWCBookViewController *sixViewController = [[CWCBookViewController alloc]init];
    sixViewController.title = @"读书";
    sixViewController.view.backgroundColor = [UIColor whiteColor];
    CWCFunnyViewController *sevenViewController = [[CWCFunnyViewController alloc]init];
    sevenViewController.title = @"段子";
    sevenViewController.view.backgroundColor = [UIColor whiteColor];
    CWCEmotionViewController *eightViewController = [[CWCEmotionViewController alloc]init];
    eightViewController.title = @"娱乐";
    eightViewController.view.backgroundColor = [UIColor whiteColor];
    
    
    ZLNavTabBarController *naveTableController = [[ZLNavTabBarController alloc]init];
    naveTableController.subViewControllers = @[oneViewController,twoViewController,threeViewController,fourViewController,fiveViewController,sixViewController,sevenViewController,eightViewController];
    naveTableController.mainViewBounces = YES;
    naveTableController.selectedToIndex = 0;
    naveTableController.unchangedToIndex = 1;
    naveTableController.showArrayButton = YES;
    [naveTableController addParentController:self];
    [naveTableController release];
}

















- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/



@end
